package com.psbc.api;

import com.psbc.task.service.QueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.ExecutionException;

/**
 * @author:y022 25/06/2022 18:48
 * @description:
 */
@RestController
@RequestMapping("/query")
public class QueryApi {

    @Autowired
    private QueryService queryService;
    @GetMapping("/test")
    public void query() throws ExecutionException, InterruptedException {
        queryService.getList();
    }
}
